﻿using System;

namespace HML
{
    /// <summary>
    /// PatternLock手势完成事件参数
    /// </summary>
    public class PatternLockCompleteEventArgs : EventArgs
    {
        private readonly string value;
        /// <summary>
        /// 手势操作结果
        /// </summary>
        public string Value
        {
            get { return this.value; }
        }

        private bool result;
        /// <summary>
        /// 返回操作结果（影响控件状态）
        /// </summary>
        public bool Result
        {
            get { return this.result; }
            set { this.result = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="value">手势操作结果</param>
        /// <param name="result">返回操作结果（影响控件状态）</param>
        public PatternLockCompleteEventArgs(string value, bool result)
        {
            this.value = value;
            this.result = result;
        }

    }
}
